<?php
 
namespace BP\CompteBundle\Form;

use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\FormBuilder;

class OperationForm extends AbstractType
{
    public function buildForm(FormBuilder $builder, array $options)
    {        
        $builder
            ->add('label')
        	->add('valeur')
        	->add('description')
        	->add('type','choice',array('choices' => array( 1 => 'créditer', 0 => 'débiter')))
        	->add('category_id', 'choice', array('choices' => array(
        	1 => 'Transports',
        	2 => 'Courses',
        	3 => 'Autres')));
    }
    
    public function getName()
    {
        return 'operation';
    }    
}
